<div id="editModal" class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true"
     xmlns:v-model="http://www.w3.org/1999/xhtml">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">User Edit</h4>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
            </div>

            <div class="modal-body">
                <form action="javascript:void(0);" class="form-horizontal form-label-left">
                    <div class="item form-group">
                        <label class="col-form-label col-md-3 col-sm-3 label-align"
                               for="userNameForEdit">User Name
                        </label>
                        <div class="col-md-6 col-sm-6 ">
                            <input type="text" id="userNameForEdit"
                                   class="form-control" v-model:value="user.userName">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="col-form-label col-md-3 col-sm-3 label-align"
                               for="emailForEdit">Email
                        </label>
                        <div class="col-md-6 col-sm-6 ">
                            <input type="text" id="emailForEdit"
                                   class="form-control" v-model:value="user.email">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="col-form-label col-md-3 col-sm-3 label-align" >Roles
                        </label>
                        <div class="col-md-6 col-sm-6 ">
                            <span v-for="(role, index) in allRoles">
                                <input type="checkbox" :value="role.id"
                                       v-model:value="user.roles"/> {{role.name}}
                            </span>
                        </div>
                    </div>
                </form>
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary"
                        @click="updateModule()" data-dismiss="modal">Save changes</button>
            </div>
        </div>
    </div>
</div>